package beans;

public class Model {
	public int modelId;
	public String name;
	public String createPerson;
	public String createTime;
	public boolean isNesting;
	public String json;
	public String nest_json;
	public boolean isReuse;

	public String introduction;
	private boolean isDefault;
	private int algorithm_id;

	public Model() {
	}

	public Model(int modelId, String name, String createPerson, String createTime, boolean isNesting, String json, String nest_json
			, boolean isReuse, String introduction) {
		super();
		this.modelId = modelId;
		this.name = name;
		this.createPerson = createPerson;
		this.createTime = createTime;
		this.isNesting = isNesting;
		this.json = json;
		this.nest_json = nest_json;
		this.isReuse = isReuse;
		this.introduction = introduction;
	}

	public Model(String name, String createPerson, String createTime, boolean isNesting, String json, String nest_json
			, boolean isReuse, String introduction) {
		this.name = name;
		this.createPerson = createPerson;
		this.createTime = createTime;
		this.isNesting = isNesting;
		this.json = json;
		this.nest_json = nest_json;
		this.isReuse = isReuse;
		this.introduction = introduction;
	}
	public int getAlgorithm_id() {
		return algorithm_id;
	}
	public void setAlgorithm_id(int algorithm_id) {
		this.algorithm_id = algorithm_id;
	}
	public boolean isDefault() {
		return isDefault;
	}

	public void setDefault(boolean aDefault) {
		isDefault = aDefault;
	}

	public int getModelId() {
		return modelId;
	}
	public void setModelId(int modelId) {
		this.modelId = modelId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCreatePerson() {
		return createPerson;
	}
	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public boolean getIsNesting() {
		return isNesting;
	}
	public void setIsNesting(boolean isNesting) {
		this.isNesting = isNesting;
	}
	public String getJson() {
		return json;
	}
	public void setJson(String json) {
		this.json = json;
	}
	public String getNest_json() { return nest_json; }
	public void setNest_json(String nest_json) { this.nest_json = nest_json; }
	public boolean getIsReuse() { return isReuse; }
	public void setIsReuse(boolean isReuse) { this.isReuse = isReuse; }
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	@Override
	public String toString() {
		return "Model{" +
				"modelId=" + modelId +
				", name='" + name + '\'' +
				", createPerson='" + createPerson + '\'' +
				", createTime='" + createTime + '\'' +
				", isNesting=" + isNesting +
				", json='" + json + '\'' +
				", nest_json='" + nest_json + '\'' +
				", isReuse=" + isReuse +
				", introduction='" + introduction + '\'' +
				'}';
	}
}
